# 响水近海风电场
import pandas as pd

# 赋值，后期excel输入
x = 6.41
y1 = 1137.92

y = 50.79661037207023 ** x - 0.77451 * x + 270
print(y)

a = 0.5

# y1 = a * x + b

b = y1 - a * x

print(b)

if b >= 2:
    i = 0
    while a < 1:
        
        i += 1
        a += 0.01
        b = y1 - a * x
        print(str(a) + ':' + str(b) + '---' + str(i))
